Patterns in Random Binary Search

نویسندگان

  • Philippe FLAJOLET
  • Philippe Flajolet
  • Xavier Gourdon
چکیده

In a randomly grown binary search tree (BST) of size n, any xed pattern occurs with a frequency that is on average proportional to n. Deviations from the average case are highly unlikely and well quantiied by a Gaussian law. Trees with forbidden patterns occur with an exponentially small probability that is characterized in terms of Bessel functions. The results obtained extend to BSTs a type of property otherwise known for strings and combinatorial tree models. They apply to paged trees or to quicksort with halting on short subbles. As a consequence, various pointer saving strategies for maintaining trees obeying the random BST model can be precisely quantiied. The methods used are based on analytic models, especially bivariate generating functions subjected to singularity perturbation asymptotics. Motifs dans les arbres binaires de recherche al eatoires R esum e. Dans un arbre binaire de recherche (ABR) de taille n construit par insertions al eatoires, chaque motif appara^ t avec une frequence qui est en moyenne proportionnelle a n. Les d eviations du cas moyen sont rares et bien quantii ees par une loi gaussienne. Les arbres a motifs exclus apparaissent avec une probabilit e exponentiellement petite caract eris ee en terme de fonctions de Bessel. Ces r esultats etendent aux ABR des propri et es connues par ailleurs dans le cas des cha^ nes de caract eres ou des arbres ob eissant aux mod eles com-binatoires uniformes. Ils s'appliquent a la pagination et aux arbres d'index ainsi qu'au comportement du \tri-rapide" (quicksort). Comme cons equence, plusieurs strat egies d'allocation de m emoire peuvent ^ etre pr ecis ement quantii ees. Les m ethodes utilis ees sont de nature analytique et reposent sur l'asymptotique de perturbation de singularit es appliqu ee aux s eries g en eratrices multivari ees. Abstract In a randomly grown binary search tree (BST) of size n, any xed pattern occurs with a frequency that is on average proportional to n. Deviations from the average case are highly unlikely and well quantiied by a Gaus-sian law. Trees with forbidden patterns occur with an exponentially small probability that is characterized in terms of Bessel functions. The results obtained extend to BSTs a type of property otherwise known for strings and combinatorial tree models. They apply to paged trees or to quicksort with halting on short subbles. As a consequence, various pointer saving strategies for maintaining trees obeying the random BST …

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Profile and Height of Random Binary Search Trees

The purpose of this article is to survey recent results on distributional properties of random binary search trees. In particular we consider the profile and the height.

متن کامل

P´olya Urn Models and Connections to Random Trees: A Review

This paper reviews P´olya urn models and their connection to random trees. Basic results are presented, together with proofs that underly the historical evolution of the accompanying thought process. Extensions and generalizations are given according to chronology: • P´olya-Eggenberger’s urn • Bernard Friedman’s urn • Generalized P´olya urns • Extended urn schemes • Invertible urn schemes ...

متن کامل

Diagnosis of Tempromandibular Disorders Using Local Binary Patterns

Background: Temporomandibular joint disorder (TMD) might be manifested as structural changes in bone through modification, adaptation or direct destruction. We propose to use Local Binary Pattern (LBP) characteristics and histogram-oriented gradients on the recorded images as a diagnostic tool in TMD assessment.Material and Methods: CBCT images of 66 patients (132 joints) with TMD and 66 normal...

متن کامل

Modeling Online Consumer Product Search∗

Using publicly available aggregate data at an online retailer, we study how consumers search for durable goods. Specifically, we investigate the search patterns when, as is common with durable products, the total set of options consumers can choose from is very large. To study search patterns, we propose to analyze our aggregate data by defining a product network, consisting of the products and...

متن کامل

Connecting Yule Process, Bisection and Binary Search Tree via Martingales

We present new links between some remarkable martingales found in the study of the Binary Search Tree or of the bisection problem, looking at them on the probability space of a continuous time binary branching process.

متن کامل

Random Records and Cuttings in Binary Search Trees

We study the number of records in a random binary search tree on n randomly labelled vertices. Equivalently the number of random cuttings required to eliminate a random binary search tree can be studied. After normalization the distribution is shown to be asymptotically 1-stable.

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 1996